package com.life.nots.config;


import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 文件名: SwaggerConfig.java Swagger配置类
 *
 * @author fengqing
 * @version 1.0.00
 * @since 2025/3/214
 */

@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("家庭生活平台接口管理文档")
                        .description("家庭生活平台接口管理文档,可以记录家庭日常收入、支出、理财等情况")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("Cuixt")
                                .email("958162410@qq.com"))
                );
    }
}

